<?php
class View_Administration_Server_Edit extends View_Administration_Server
{
	public function buildContent( $serverId )
	{
		$words		= $this->words['server']['editServer'];

		//  --  UI COMPONENTS  --  //
		$ui	= array(
			'form'		=> $this->buildForm(
				'administration/server',
				'editServer',
				'server',
				'editServer',
				Logic_Server::getServerData( $serverId )
			),
			'buttonCancel'	=> $this->html->LinkButton(
				self::getUrl(),
				$words['buttonCancel'],
				'but cancel'
			),
			'buttonEdit'	=> $this->html->Button(
				'editServer',
				$words['buttonEdit'],
				'but edit'
			),
			'buttonRemove'	=> $this->html->LinkButton(
				self::getUrl( array( 'removeServer' => $serverId ) ),
				$words['buttonRemove'],
				'buthot remove',
				$words['buttonRemoveConfirm']
			),
	
			'form.tag'		=> $this->html->Form(
				'editServer',
				self::getUrl( array( 'serverId' => $serverId ) )
			),
			'caption'		=> $this->html->TableCaption( $words['caption'], 'edit' ),
			'colgroup'		=> $this->html->ColumnGroup( $words['colgroup'] ),
		);
		return $this->loadTemplate( 'administration.server.edit', $ui );
	}
}
?>